-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Increase timeout for reasoning models + make o1 available by default #3954
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
model_provider: str, | ||
model_name: str, | ||
timeout: int | None = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
making these None
by default and setting the default within the init to allow for more complicated logic here
@@ -29,11 +29,11 @@ class WellKnownLLMProviderDescriptor(BaseModel): | |||
OPEN_AI_MODEL_NAMES = [ | |||
"o3-mini", | |||
"o1-mini", | |||
"o1-preview", | |||
"o1-2024-12-17", | |||
"o1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
o1 should be higher up than preview
"o1-mini": "O1 Mini", | ||
"o1-preview": "O1 Preview", | ||
o1: "O1", | ||
"o1-2025-12-17": "o1 (December 2025)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
matching case of OpenAI's docs/chatgpt
Description
https://linear.app/danswer/issue/DAN-1436/different-timeout-for-reasoning-models
How Has This Been Tested?
Tested locally, previously timed out -> doesn't timeout anymore.
Backporting (check the box to trigger backport action)
Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.